package com.company.project.config.properties;


import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * =================================
 * <p>
 * Created by cjj on 18-5-16.
 * <p>
 * 描述: 项目配置文件
 */

@Component
@ConfigurationProperties(prefix = ProjectProperties.PREFIX)
public class ProjectProperties {

    public static final String PREFIX = "project";

    private boolean swaggerOpen = false;
    /**
     * 安全验证是否打开
     */
    private boolean authOpen = true;
    /**
     * 签名认证是否打开
     */
    private boolean signOpen = true;

    public boolean isSwaggerOpen() {
        return swaggerOpen;
    }

    public void setSwaggerOpen(boolean swaggerOpen) {
        this.swaggerOpen = swaggerOpen;
    }

    public boolean isAuthOpen() {
        return authOpen;
    }

    public void setAuthOpen(boolean authOpen) {
        this.authOpen = authOpen;
    }

    public boolean isSignOpen() {
        return signOpen;
    }

    public void setSignOpen(boolean signOpen) {
        this.signOpen = signOpen;
    }
}
